package com.rdc.example.dao;

import com.rdc.example.entity.Follow;

import java.util.List;

public interface FollowDao {
    boolean insert(Follow follow) throws Exception;

    boolean deleteById(Integer id) throws Exception;

    boolean deleteByFollowerIdFollowedId(Integer followerId, Integer followedId) throws Exception;

    boolean followCheck(Integer followerId, Integer followedId) throws Exception;

    boolean deleteByFollowedId(Integer followedId) throws Exception;


    List<Integer> listFollowedIdsByFollowerId(Integer followerId) throws Exception;

    List<Follow> listFollowByFollowedId(Integer followedId) throws Exception;
}
